import React from "react";

import PropTypes from 'prop-types'
import { BASE_URL } from "../../utils/url"

import styles from './index.module.css'

const NoHouse = ({ children }) => {
  return (
    <div className={styles.root}>
      <img src={BASE_URL + '/img/not-found.png'} alt="暂无数据" className={styles.img} />

      <p className={styles.msg}>{children}</p>


    </div>

  )

}
NoHouse.prototype = {
  children: PropTypes.string.isRequired
}

export default NoHouse